﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Brjostagjof_H4.Models.aspnet_Membership>" %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ApplicationId) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApplicationId) %>
                <%: Html.ValidationMessageFor(model => model.ApplicationId) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.UserId) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.UserId) %>
                <%: Html.ValidationMessageFor(model => model.UserId) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Password) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Password) %>
                <%: Html.ValidationMessageFor(model => model.Password) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PasswordFormat) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PasswordFormat) %>
                <%: Html.ValidationMessageFor(model => model.PasswordFormat) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PasswordSalt) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PasswordSalt) %>
                <%: Html.ValidationMessageFor(model => model.PasswordSalt) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.MobilePIN) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.MobilePIN) %>
                <%: Html.ValidationMessageFor(model => model.MobilePIN) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LoweredEmail) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LoweredEmail) %>
                <%: Html.ValidationMessageFor(model => model.LoweredEmail) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PasswordQuestion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PasswordQuestion) %>
                <%: Html.ValidationMessageFor(model => model.PasswordQuestion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PasswordAnswer) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PasswordAnswer) %>
                <%: Html.ValidationMessageFor(model => model.PasswordAnswer) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsApproved) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IsApproved) %>
                <%: Html.ValidationMessageFor(model => model.IsApproved) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsLockedOut) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IsLockedOut) %>
                <%: Html.ValidationMessageFor(model => model.IsLockedOut) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CreateDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CreateDate, String.Format("{0:g}", Model.CreateDate)) %>
                <%: Html.ValidationMessageFor(model => model.CreateDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LastLoginDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LastLoginDate, String.Format("{0:g}", Model.LastLoginDate)) %>
                <%: Html.ValidationMessageFor(model => model.LastLoginDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LastPasswordChangedDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LastPasswordChangedDate, String.Format("{0:g}", Model.LastPasswordChangedDate)) %>
                <%: Html.ValidationMessageFor(model => model.LastPasswordChangedDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LastLockoutDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LastLockoutDate, String.Format("{0:g}", Model.LastLockoutDate)) %>
                <%: Html.ValidationMessageFor(model => model.LastLockoutDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FailedPasswordAttemptCount) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FailedPasswordAttemptCount) %>
                <%: Html.ValidationMessageFor(model => model.FailedPasswordAttemptCount) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FailedPasswordAttemptWindowStart) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FailedPasswordAttemptWindowStart, String.Format("{0:g}", Model.FailedPasswordAttemptWindowStart)) %>
                <%: Html.ValidationMessageFor(model => model.FailedPasswordAttemptWindowStart) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FailedPasswordAnswerAttemptCount) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FailedPasswordAnswerAttemptCount) %>
                <%: Html.ValidationMessageFor(model => model.FailedPasswordAnswerAttemptCount) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FailedPasswordAnswerAttemptWindowStart) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FailedPasswordAnswerAttemptWindowStart, String.Format("{0:g}", Model.FailedPasswordAnswerAttemptWindowStart)) %>
                <%: Html.ValidationMessageFor(model => model.FailedPasswordAnswerAttemptWindowStart) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Comment) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Comment) %>
                <%: Html.ValidationMessageFor(model => model.Comment) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.phone_number) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.phone_number) %>
                <%: Html.ValidationMessageFor(model => model.phone_number) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.favorites) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.favorites) %>
                <%: Html.ValidationMessageFor(model => model.favorites) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.isActive) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.isActive) %>
                <%: Html.ValidationMessageFor(model => model.isActive) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.user_role) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.user_role) %>
                <%: Html.ValidationMessageFor(model => model.user_role) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.title) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.title) %>
                <%: Html.ValidationMessageFor(model => model.title) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>


